Why am I getting an AttributeError related to 'iteritems' after updating pandas